//--------------------------------------------------------------------//
// Master do-file
//
// Paper: "Little evidence that military policing reduces crime 
// or improves human security"
//
// Authors: Robert Blair and Michael Weintraub
//
// Date created: 2022-06-30
// Date last modified:2023-01-06
// 
// Notes:
//	(1) This do-file indicates the order in which to run all code for 
//  the project. 
//
//------------------------------------------------------------------//

//---------//
// -- Preliminaries 
//---------//

clear all
set more off
graph set window fontface "Times New Roman"


* Defining main computer path

global path "~/Dropbox/Asistencia de investigacion/Proyecto Cali/Mapas Cali/08_Data&Analysis/02_dofiles/v20220630_PaperReplication" 

		
* Set working directory
cd "${path}" 


//---------//
// -- Run project do-files 
//---------//

	//- 01_Housekeeping: defines paths and packages used in the project. 
			
	include "${path}/Code/01_Housekeeping.do"
		

	//- 02_Run_Randomization_Inference: randomizes the treatment assignment 
	// using 100,000 simulations. These simulations are used to calculate the
	// randomization inference p-values reported in the tables and figures. 
	
	include "${path}/Code/02_Run_Randomization_Inference.do"
	
	
	//- 03_Tables: produces the main and appendix 
	// tables for the project, including randomization inference p-values. 
	// The tables produced here are: 
	//		- Table 1
	//		- Table A.2
	//		- Table A.3
	//		- Table A.4 
	// 		- Table A.5  
	// 		- Table A.6
	//		- Table A.7 
	//		- Table A.8
	//		- Table A.9
	//		- Table A.10
	//		- Table A.11
	//		- Table A.12
	//		- Table A.13 
	//		- Table A.14
	//		- Table A.15
	//		- Table A.16
	//		- Table A.17
	//		- Table A.18 
	//		- Table A.19
	//		- Table A.20
	//		- Table A.21
	//		- Table A.22
	
	
	include "${path}/Code/03_Tables.do"
	
	
	//- 04_Randomization_Inference_Figures: produces the main and appendix 
	// figures for the project, including randomization inference p-values. 
	// The figures produced here are: 
	// 		- Figure 2
	//		- Figure 3
	//		- Figure 4
	//		- Figure A.6
	//		- Figure A.7
	//		- Figure A.8
	//		- Figure A.9 
	//		- Figure A.10 (part 1 and part 2)
	//		- Figure A.11 (part 1 and part 2)
	//		- Figure A.23
	//		- Figure A.24
	//		- Figure A.25
	//		- Figure A.26
	//		- Figure A.27
	//		- Figure A.28
	
	include "${path}/Code/04_Figures.do"
		
		
		